
/**
 * 编辑已投放广告
 */
function editAd(){

	var adId = getQueryString("adId");
	
	$.ajax({
		url : '/Lvscore_Advertiser_Maven/updatePlacementAd',
        data:{adId:adId},
		type : 'post',
		success : function(data) {
			var resultVo = data.resultVo;
			var picServerPrex = resultVo.picServerPrex;
			var ads = data.bean;
			$("#adName").html(ads.adName);	
			$(".adCoverImg").attr("src",picServerPrex+ads.adHomepage);
			
		},
        error: function(){}        
	});
}

/**
 *  提交审核
 */
function updateAd(){

	$.ajax({
		url : '/Lvscore_Advertiser_Maven/updateAd',
        data:{  adId:"adId",
	        	adHomepage:"adHomepage",
	        	adKey:"adKey",
	        	description:"description",
	        	adClassify:"adClassify",
	        	url:"url",
	        	size:"size",
	        	adType:"adType",
	        	terminalType:"terminalType"},
		type : 'post',
		success : function(data) {},
        error: function(){}        
	});
}